import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/User/Login.vue'),
    },
    {
      path: '/MenuView',
      name: 'MenuView',
      component: () => import('../views/MenuView.vue'),
      children:[
        // {
        //   path: 'Permission',
        //   name: 'Permission',
        //   component: () => import('../views/Provenance/GetProductInfo.vue'),
        // },
       ]
    },
  ],
})




export default router
